//
//  ComposeViewController.m
//  LBWeibo
//
//  Created by lin on 15/7/6.
//  Copyright (c) 2015年 lin. All rights reserved.
//

#import "ComposeViewController.h"
#import "UIView+Extension.h"
@interface ComposeViewController()
@property(nonatomic,strong)UILabel *label;
@end
@implementation ComposeViewController

-(UILabel *)label{
    if (!_label) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(self.view.width/2.0-25, 0, 50, 64)];
    }
    return _label;
}
-(void)viewDidLoad{
    [super viewDidLoad];
    self.view.backgroundColor =[UIColor redColor];
    self.navigationItem.leftBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"cancel" style:UIBarButtonItemStyleDone target:self action:@selector(cancel)];
    self.label.text = @"发微博\n你好";
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.numberOfLines = 0;
    self.navigationItem.titleView =self.label;
    
}

-(void)cancel{
    [self dismissViewControllerAnimated:YES completion:nil];
}
@end
